package com.gkzf.ai.module.crm.controller.admin.creditReport.vo.creditreportbasic;

import com.gkzf.ai.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static com.gkzf.ai.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - CRM 征信报告基础分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CreditReportBasicPageReqVO extends PageParam {

    @Schema(description = "姓名", example = "王五")
    private String name;

    @Schema(description = "证件类型", example = "2")
    private String documentType;

    @Schema(description = "手机号", example = "131574893241")
    private String phone;

    @Schema(description = "证件号码")
    private String idNumber;

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "解析状态0：解析中  1:解析完成  2：解析超时")
    private String status;

    @Schema(description = "婚姻状况", example = "1")
    private String marriageStatus;

    @Schema(description = "征信报告url", example = "https://www.iocoder.cn")
    private String creditReportUrl;

    @Schema(description = "征信报告名称", example = "赵六")
    private String creditReportName;

    @Schema(description = "学历")
    private String education;

    /**
     * 是否匹配 0：未匹配 1：匹配
     */
    private Integer isMatch;

    /**
     * 是否生成过二维码 0否 1是
     */
    private Integer isSubmitQpCode;


    @Schema(description = "可看的用户集合")
    private List<Long> userList;

    @Schema(description = "创建人")
    private String createName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}